package com.demo.exception;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @Author： yu.Tan
 * @Date: 2020/8/27 14:09
 * @Description: 自定义异常
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class RRException extends RuntimeException {
    private static final long serialVersionUID = 1L;

    private String msg;
    private int code = 500;

    public RRException( String msg) {
        this.msg = msg;
        this.code=500;
    }
}
